package com.zzyang.mybatis.jdbc.cluster;

import org.apache.ibatis.plugin.Invocation;

/**
 * 带故障转移的功能
 *
 * @author zhuoziyang
 * @date 2021/4/10 17:03
 */
public class StatisticCluster implements Cluster {

    private final Cluster delegate;

    public StatisticCluster(Cluster delegate) {
        this.delegate = delegate;
    }

    @Override
    public Object execute(Invocation invocation) throws Exception {
        return delegate.execute(invocation);
    }

}
